package com.baolai.service;

import com.alibaba.fastjson.JSONObject;
import com.baolai.entity.GoodsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

@Service
public interface GoodsRecordService extends IService<GoodsRecord> {
    boolean addGoodsRecord(String type, String goodsId, String site, Integer number, String account, String name);

    JSONObject listGoodsRecord(Integer current, Integer size);

    JSONObject queryGoodsRecord(String begin, String end, Integer current, Integer size);

    JSONObject queryGoodsRecordByGoodsId(String goodsId, String begin, String end, Integer current, Integer size);
}
